<?php
function sendMail($to, $body, $subject) {
$message = file_get_contents("./templates/email.htm");
$message = str_replace("#body#", $body, $message);
$from = "webmaster@blindza.co.za"; 
$headers  = "From: $from\r\n"; 
$headers .= "Content-type: text/html\r\n";  
try {
mail($to, $subject, $message, $headers);
}
catch(Exception $e) {
echo "<!-- " . $e . " -->\n";
}
}//end of sendMail function
?>
